import { defineConfig } from "vite";
import { fileURLToPath } from "node:url";
import path from "path";
import { ViteEjsPlugin, ejs } from "vite-plugin-ejs";
import { viteEjs } from "./vite-plugin-ejs/vite-ejs";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);


export default defineConfig({
  root: "src",
  // appType: 'mpa',
  // base: 'abc',
  plugins: [
    viteEjs(),
  ],

  css:{
    devSourcemap: true
  },
  build: {
    
    assetsInlineLimit: 0,
    minify: false,
    outDir: path.join(__dirname, "dist"),
    rollupOptions: {
      input: {
        index: 'src/index.html',
        // about: 'src/about.html',
        // test: 'src/pages/test.html'
        // cot: 'src/pages/cot.html',
        // fqa: 'src/fqa.ejs'
      }
    }
  }

})